from flask import Flask

app = Flask(__name__)
#使用methods指定路由的请求方式
@app.route('/', methods=['POST', 'GET'])
def index():
    return 'index'
print(app.url_map)
if __name__=='__main__':
    app.run(debug=True)
